package com.facade.rolsubtarea;

import java.io.Serializable;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.modelo.dao.rolsubtarea.IRolSubtareaDAO;
import com.modelo.entity.Rol;
import com.modelo.entity.Rolsubtarea;

@Service
public class GestionRolSubtarea implements IGestionRolSubtarea,Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Autowired
	IRolSubtareaDAO rolsubtareaDAO; 
	
	@Override
	public List<Rolsubtarea> getSubtareasFromRol(Rol r) {
		return rolsubtareaDAO.getSubtareasFromRol(r);
	}

	public void setRolsubtareaDAO(IRolSubtareaDAO rolsubtareaDAO) {
		this.rolsubtareaDAO = rolsubtareaDAO;
	}

}
